home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / smd5.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.5 KB  |  43 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: smd5.h,v 1.2 2000/09/19 19:00:50 lpd Exp $ */
  20. /* Definitions for MD5Encode filter */
  21. /* Requires scommon.h; strimpl.h if any templates are referenced */
  22.  
  23. #ifndef smd5_INCLUDED
  24. #  define smd5_INCLUDED
  25.  
  26. #include "md5.h"
  27.  
  28. /*
  29.  * The MD5Encode filter accepts an arbitrary amount of input data, and then,
  30.  * when closed, emits the 16-byte MD5 digest.
  31.  */
  32. typedef struct stream_MD5E_state_s {
  33.     stream_state_common;
  34.     md5_state_t md5;
  35. } stream_MD5E_state;
  36.  
  37. #define private_st_MD5E_state()    /* in smd5.c */\
  38.   gs_private_st_simple(st_MD5E_state, stream_MD5E_state,\
  39.     "MD5Encode state")
  40. extern const stream_template s_MD5E_template;
  41.  
  42. #endif /* smd5_INCLUDED */
  43.